package com.bc.trade.model;

import com.bc.common.basemodel.BaseRiskRule;
import com.bc.trade.config.R;
import com.fs.common.util.FSJedis;

@SuppressWarnings("serial")
public class RiskRule extends BaseRiskRule<RiskRule> {
	
	public static final RiskRule dao = new RiskRule().dao();
	
	public RiskRule selectFromRedis(Integer riskRuleId){
		if (R.IS_REDIS) {
			return FSJedis.get(R.RK_RISK, riskRuleId.toString(), RiskRule.class);
		} else {
			return super.findById(riskRuleId);
		}
	}

}
